package com.ccrfid.rmc6.entity.business.rollcall2;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "rc_record")
public class RcRecordEntity {
    private Long id;
    private Timestamp rollcallTime;
    private Long orgGroupId;
    private String orgGroupName;
    private Long locationGroupId;
    private String locationGroupName;
    private Integer totalCount;
    private Integer attendanceCount;
    private Integer absenceCount;
    private Integer status;
    private Integer submitStatus;

    @Id
    @Column(name = "id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "rollcall_time", nullable = false)
    public Timestamp getRollcallTime() {
        return rollcallTime;
    }

    public void setRollcallTime(Timestamp rollcallTime) {
        this.rollcallTime = rollcallTime;
    }

    @Basic
    @Column(name = "org_group_id", nullable = false)
    public Long getOrgGroupId() {
        return orgGroupId;
    }

    public void setOrgGroupId(Long orgGroupId) {
        this.orgGroupId = orgGroupId;
    }

    @Basic
    @Column(name = "org_group_name", length = 45)
    public String getOrgGroupName() {
        return orgGroupName;
    }

    public void setOrgGroupName(String orgGroupName) {
        this.orgGroupName = orgGroupName;
    }

    @Basic
    @Column(name = "location_group_id", nullable = false)
    public Long getLocationGroupId() {
        return locationGroupId;
    }

    public void setLocationGroupId(Long locationGroupId) {
        this.locationGroupId = locationGroupId;
    }

    @Basic
    @Column(name = "location_group_name", length = 45)
    public String getLocationGroupName() {
        return locationGroupName;
    }

    public void setLocationGroupName(String locationGroupName) {
        this.locationGroupName = locationGroupName;
    }

    @Basic
    @Column(name = "total_count", nullable = false)
    public Integer getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Integer totalCount) {
        this.totalCount = totalCount;
    }

    @Basic
    @Column(name = "attendance_count", nullable = false)
    public Integer getAttendanceCount() {
        return attendanceCount;
    }

    public void setAttendanceCount(Integer attendanceCount) {
        this.attendanceCount = attendanceCount;
    }

    @Basic
    @Column(name = "absence_count", nullable = false)
    public Integer getAbsenceCount() {
        return absenceCount;
    }

    public void setAbsenceCount(Integer absenceCount) {
        this.absenceCount = absenceCount;
    }

    @Basic
    @Column(name = "status", nullable = false)
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Basic
    @Column(name = "submit_status", nullable = false)
    public Integer getSubmitStatus() {
        return submitStatus;
    }

    public void setSubmitStatus(Integer submitStatus) {
        this.submitStatus = submitStatus;
    }
}
